﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace AspnetCore04
{
    //Startup类多环境
    //Program.cs里将webBuilder.UseStartup<Startup>();改为:webBuilder.UseStartup(Assembly.GetExecutingAssembly().FullName);
    //约定,StartupXXX,XXX为:ASPNETCORE_ENVIRONMENT环境变量的值
    //将launchSettings.json文件里的ASPNETCORE_ENVIRONMENT的值改成Demo会执行该类
    public class StartupDemo
    {
        public StartupDemo()
        {

        }

        public void ConfigureServices(IServiceCollection services)
        {

        }

        public void Configure(IApplicationBuilder app)
        {

        }

    }
}
